xss_security ( trim ( $_GET ["search"] ) ) ; if ( isset ( $search ) && $search == true && !is_numeric ( $search ) ){ $inner = array ( "category" , "admins" ) ; $join = array ( "yespress_topic.cat_topic=yespress_category.id_cat" , "yespress_topic.author_topic=yespress_admins.id_admin" ) ; $select_topic = $on_mysqli->select_db_inner ( "topic" , $inner , $join , "where title_topic like '%$search%'" , "order by id_topic desc" , "limit 10" ) ; if ( mysqli_num_rows ( $select_topic ) != false ){ while ( $topic_array = mysqli_fetch_assoc ( $select_topic ) ){ print ( "
تاريخ النشر : ".$topic_array ["date_topic"]."
".mb_substr ( $topic_array ["title_topic"] , '0' , '55' , 'UTF-8' )." ... المزيد ..
كـاتـب : ".$topic_array ["user_admin"]." || الـفـئـة : ".$topic_array ["name_cat"]."
" ) ; $prev_topic = $topic_array ["id_topic"] ; } if ( mysqli_num_rows ( $select_topic ) > 9 ){ print ( "
الـمـزيـد .
" ) ; } else { print ( "
الـمـزيـد .
" ) ; } $on_mysqli->query_close () ; } else { $on_mysqli->query_close () ; print ( "
لا تـوجـد نـتـائـج لـلـبـحـث
" ) ; } } else { print ( "
الـصـفـحـة خـطـأ , سـيـتـم تـحـويـلـك إلـى الـصـفـحـة الـرئـسـيـة .
" ) ; } ?>